package com.tinymall.util;

import java.util.ArrayList;
import java.util.Random;

/**
 * @author R.Yu
 * @date 2022/4/14 18:33
 */
public class Avatar {

    static ArrayList<String> avatarList = new ArrayList<>();

    public static String getAvatar() {
        // avatarList.add("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F0314%252F94ad46dbj00qpy1do0021d200rs00rsg008t008t.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1652524369&t=4433cc2343d4971a23f9e88e3a488571");
        avatarList.add("https://gimg2.baidu.com/image_search/https://pic.sogou.com/d?query=%E5%A4%B4%E5%83%8F&forbidqc=&entityid=&preQuery=&rawQuery=&queryList=&st=191&did=2");
        avatarList.add("https://gimg2.baidu.com/image_search/https://pic.sogou.com/d?query=%E5%A4%B4%E5%83%8F&forbidqc=&entityid=&preQuery=&rawQuery=&queryList=&st=191&did=2");
        avatarList.add("https://gimg2.baidu.com/image_search/https://pic.sogou.com/d?query=%E5%A4%B4%E5%83%8F&forbidqc=&entityid=&preQuery=&rawQuery=&queryList=&st=191&did=2");
        avatarList.add("https://gimg2.baidu.com/image_search/https://pic.sogou.com/d?query=%E5%A4%B4%E5%83%8F&forbidqc=&entityid=&preQuery=&rawQuery=&queryList=&st=191&did=2");
        avatarList.add("https://gimg2.baidu.com/image_search/https://pic.sogou.com/d?query=%E5%A4%B4%E5%83%8F&forbidqc=&entityid=&preQuery=&rawQuery=&queryList=&st=191&did=2");

        return avatarList.get(new Random().nextInt(6));
    }
}
